@import '../../styles/themes';
@import '~bootstrap/scss/mixins/breakpoints';
@import '~@nebular/theme/styles/global/bootstrap/breakpoints';

@include nb-install-component() {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  .btn.btn-tn {
    border-radius : 0.8rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    color: white;
    border:solid 1px #ffffff;
    width: 100%;
  }

  .btn.btn-outline-primary:hover, .btn.btn-outline-primary.active {
    color: #3399ff;
    background-color:rgb(255,190,152);
    border: 0px;
  }

  .logo {
    display: flex;
    width: 100%;
    order: 0;
    flex-direction: row;
    justify-content: space-between;
    .logo-title {
      display: flex;
      width: 50%;
      order: 0;
      align-items: center;
      flex-direction: row;
      font-size: 2rem;
      font-family:"KaiTi","Segoe UI", Roboto, "Helvetica Neue", sans-serif;
      font-weight: 600;
      padding-top: 0.5rem;
      position: relative;
      top: 7px;
      left:5px;
      background:url('/assets/images/logo.png') no-repeat;
    }
    .logo-info {
      display: flex;
      width: 50%;
      order: 1;
      align-items: center;
      flex-direction: row-reverse;
      padding: 0rem 1rem;
      span {
        margin: 1rem;
      }
    }
  }
  .menu {
    display: flex;
    width: 100%;
    order: 1;
    padding: 0rem 1rem;
    justify-content: space-between;
    flex-direction: row-reverse;
    .other {
      display: flex;
      width: 43%;
      order: 0;
    }
    .info {
      display: flex;
      width: 57%;
      order: 1;
      .col-md-2 {
        padding-right: 6px;
        padding-left: 6px;
      }
      .dropdown-item {
        padding: 0.2rem 1rem;
      }
      .dropdown-menu {
        border-radius: 0.575rem;
        width: auto;
        padding: 0.6rem 0;
        background-color:#ffffff;
        color: #000000;
        box-shadow:0 2px 12px 0 #dfe3eb;
      }
    }
  }


  .control-item {
    display: block;
  }

  .header-container {
    color: white;
    .navigation {
      color: white;
      font-size: 3.1rem;
      font-weight: 700;
      text-decoration: none;
      padding-right: 5px;
    }
    .logoout {
      color: white;
      font-size: 1.8rem;
    }
  }


  @include keyframes(pulse) {
    0% {
      box-shadow: 0 0 1px 0 rgba(nb-theme(color-fg-highlight), 0);
    }
    20% {
      box-shadow: 0 0 3px 10px rgba(nb-theme(color-fg-highlight), 0.4);
    }
    100% {
      box-shadow: 0 0 5px 20px rgba(nb-theme(color-fg-highlight), 0);
    }
  }

  @include keyframes(pulse-light) {
    0% {
      box-shadow: 0 0 1px 0 rgba(115, 255, 208, 0);
    }
    20% {
      box-shadow: 0 0 3px 10px rgba(115, 255, 208, 0.4);
    }
    100% {
      box-shadow: 0 0 5px 20px rgba(115, 255, 208, 0);
    }
  }

  @include media-breakpoint-down(md) {

    nb-action:not(.toggle-layout) {
      border: none;
    }

    .control-item {
      display: none;
    }
  }

  @include media-breakpoint-down(sm) {

    nb-user /deep/ .user-name {
      display: none;
    }
  }

  @include media-breakpoint-down(is) {

    .header-container {
      .logo {
        font-size: 1.25rem;
      }
    }

    .toggle-layout {
      display: none;
    }

    nb-action:not(.toggle-layout) {
      padding: 0;
    }
  }

  @include media-breakpoint-down(xs) {
    .right /deep/ {
      display: none;
    }
  }
}
